package cn.lijiajia3515.cairo.system.modules.file;

import cn.lijiajia3515.cairo.mongo.data.AbstractMongo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.bson.types.ObjectId;

/**
 * 文件夹 mongo
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class FolderMongo extends AbstractMongo {
	/**
	 * id
	 */
	private ObjectId id;

	/**
	 * client
	 */
	private String client;

	/**
	 * path
	 */
	private String path;

	/**
	 * 元数据
	 */
	@Builder.Default

	public static final Field FIELD = new Field();

	public static class Field extends AbstractMongo.Field {
		public final String CLIENT = field("Client");
		public final String PATH = field("path");
	}
}
